package com.nuhu.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
public class IndexController {
    @GetMapping("/index")
    public String index() {
        return "index.html"; // 返回静态资源的路径
    }
    @GetMapping("/login")
    public String login(){
        return "login.html";
    }
    @GetMapping("/register")
    public String register(){
        return "register.html";
    }
}


